package com.zhangzhibo.service.bill;

import com.zhangzhibo.dao.bill.BillMapper;
import com.zhangzhibo.pojo.Bill;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.sql.SQLException;
import java.util.List;

public interface BillService {
    //根据 商品名称、供应商id、是否付款 查询订单总数
    public abstract int getBillCount(String queryProductName, int queryProviderId, int queryIsPayment);

    //根据 商品名称、供应商id、是否付款 查询订单列表
    public abstract List<Bill> getBillList(String queryProductName, int queryProviderId, int queryIsPayment, int currentPageNo, int pageSize);

    //添加订单
    public abstract int addBill(Bill bill);

    public abstract int checkBillCodeNumber();

    //删除订单
    public abstract int deleteBill(int billId);

    //根据订单id 获取订单信息
    public abstract Bill findByBillId(int billId);

    //修改订单信息
    public abstract int modifyBill(Bill bill);
}
